#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int n = 0;
	scanf("%d", &n);
	int arr[n][n];
	int j = 0;
	if (n % 2 == 0)
	{
		j = n / 2;

	}
	else
	{
		j = (n * n) / 2 + 1;
		j = j - n + 1;
		for (int a = 2; a < n; a++)
		{
			for (int b = 1; b < n; b++)
			{
				j--;
			}
			j -= 2;
		}
		if (j % 2 == 0)
		{
			printf("yes");
		}
		else("no");
	}
	return 0;
}